package com.humingzhang.client.aws;

import com.humingzhang.client.FileConfig;

/**
 * AWS 配置
 *
 * @author minghu.zhang
 */
public class AwsConfig implements FileConfig {

    private String accessKeyId;
    private String accessKeySecret;
    private String endpoint;
    private String bucketName;
    private String region;

    public AwsConfig() {
    }

    public AwsConfig(String accessKeyId, String accessKeySecret, String endpoint, String bucketName, String region) {
        this.accessKeyId = accessKeyId;
        this.accessKeySecret = accessKeySecret;
        this.endpoint = endpoint;
        this.bucketName = bucketName;
        this.region = region;
    }

    public String getAccessKeyId() {
        return accessKeyId;
    }

    public AwsConfig setAccessKeyId(String accessKeyId) {
        this.accessKeyId = accessKeyId;
        return this;
    }

    public String getAccessKeySecret() {
        return accessKeySecret;
    }

    public AwsConfig setAccessKeySecret(String accessKeySecret) {
        this.accessKeySecret = accessKeySecret;
        return this;
    }

    public String getEndpoint() {
        return endpoint;
    }

    public AwsConfig setEndpoint(String endpoint) {
        this.endpoint = endpoint;
        return this;
    }

    public String getBucketName() {
        return bucketName;
    }

    public AwsConfig setBucketName(String bucketName) {
        this.bucketName = bucketName;
        return this;
    }

    public String getRegion() {
        return region;
    }

    public AwsConfig setRegion(String region) {
        this.region = region;
        return this;
    }

    @Override
    public String toString() {
        return "AwsFileConfig{" +
                "accessKeyId='" + accessKeyId + '\'' +
                ", accessKeySecret='" + accessKeySecret + '\'' +
                ", endpoint='" + endpoint + '\'' +
                ", bucketName='" + bucketName + '\'' +
                ", region='" + region + '\'' +
                '}';
    }
}
